package com.stores.model;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable
public class Address {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key key;
	@Persistent
	private String line1;
	@Persistent
	private String line2;
	@Persistent
	private String buildingOrPlot;
	@Persistent
	private String locality;
	@Persistent
	private String city;
	@Persistent
	private String country;	

	public void setLine1(String line1) {
		this.line1 = line1;
	}

	public String getLine1() {
		return line1;
	}

	public void setLine2(String line2) {
		this.line2 = line2;
	}

	public String getLine2() {
		return line2;
	}

	public void setBuildingOrPlot(String buildingOrPlot) {
		this.buildingOrPlot = buildingOrPlot;
	}

	public String getBuildingOrPlot() {
		return buildingOrPlot;
	}

	public void setLocality(String locality) {
		this.locality = locality;
	}

	public String getLocality() {
		return locality;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getCity() {
		return city;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public String getCountry() {
		return country;
	}

	public void setKey(Key key) {
		this.key = key;
	}

	public Key getKey() {
		return key;
	}
}
